<?php 
/*
 * @Author: 白酒煮饭
 * @Date: 2018-10-31 14:57:46
 * @lastEditors: 白酒煮饭
 * @LastEditTime: 2019-11-11 21:30:15
 */
$id = $_GET['user'];
$name = $_GET['name'];
 $file_path="./AutoJs_Code/".$id."/".$name; 
 if(is_file($file_path)) { 
  if(unlink($file_path)) { 
  print_r(json_encode(array("code"=>200,"msg"=>"已删除!")));
  } else { 
print_r(json_encode(array("code"=>201,"msg"=>"删除失败!")));
  } 
 } else { 
 print_r(json_encode(array("code"=>202,"msg"=>"文件不存在!")));
 } 
?> 